package com.hanxy.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hxy.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

/**
* 系统菜单实体
*
* @author dingyoukun
* @date 2021-08-26 20:32
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "SysMenu", description = "系统菜单实体")
@TableName(value = "t_sys_menu")
public class SysMenu extends BaseEntity {

	/**
     * name 权限名称
     */
    @ApiModelProperty(value = "权限名称")
	private String name;

	/**
     * path 路径
     */
    @ApiModelProperty(value = "路径")
	private String path;

	/**
     * component 组件
     */
    @ApiModelProperty(value = "组件")
	private String component;

	/**
     * icon icon
     */
    @ApiModelProperty(value = "icon")
	private String icon;

	/**
     * sort 序号
     */
    @ApiModelProperty(value = "序号")
	private Integer sort;

	/**
     * redirect 链接地址
     */
    @ApiModelProperty(value = "链接地址")
	private String redirect;

	/**
     * route 路由名称
     */
    @ApiModelProperty(value = "路由名称")
	private String route;

	/**
     * parentId 父级id
     */
    @ApiModelProperty(value = "父级id")
	private Integer parentId;

	/**
     * type 菜单类型 0-菜单 1-按钮
     */
    @ApiModelProperty(value = "菜单类型 0-菜单 1-按钮")
	private Integer type;

	/**
     * depth 深度
     */
    @ApiModelProperty(value = "深度")
	private Integer depth;

	/**
     * states 状态 1-启用 0-隐藏
     */
    @ApiModelProperty(value = "状态 1-启用 0-隐藏")
	private Integer states;

}
